From: Dennis Dast Date: Mon, 20 Sep 2021 13:56:04 +0000 (+0200) Subject: luci-app-radicale2: Fix library loading X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=3a8af31ffafe3974c91207e1b26de74b1a105fb0;p=project%2Fluci.git luci-app-radicale2: Fix library loading This fixes the "Authentication / Users" and "Storage" tab of luci-app-radicale2. Signed-off-by: Dennis Dast (cherry picked from commit 29f78ce73fd35978f34d1aa4d7a7697889298d3e) --- diff --git a/applications/luci-app-radicale2/luasrc/model/cbi/radicale2/auth.lua b/applications/luci-app-radicale2/luasrc/model/cbi/radicale2/auth.lua index 19a7f0c753..c77dddea03 100644 --- a/applications/luci-app-radicale2/luasrc/model/cbi/radicale2/auth.lua +++ b/applications/luci-app-radicale2/luasrc/model/cbi/radicale2/auth.lua @@ -1,6 +1,6 @@ -- Licensed to the public under the Apache License 2.0. -local rad2 = luci.controller.radicale2 +local rad2 = require "luci.controller.radicale2" local fs = require("nixio.fs") local util = require("luci.util") diff --git a/applications/luci-app-radicale2/luasrc/model/cbi/radicale2/storage.lua b/applications/luci-app-radicale2/luasrc/model/cbi/radicale2/storage.lua index 3440296edf..1ca378d461 100644 --- a/applications/luci-app-radicale2/luasrc/model/cbi/radicale2/storage.lua +++ b/applications/luci-app-radicale2/luasrc/model/cbi/radicale2/storage.lua @@ -1,6 +1,6 @@ -- Licensed to the public under the Apache License 2.0. -local rad2 = luci.controller.radicale2 +local rad2 = require "luci.controller.radicale2" local fs = require("nixio.fs") local m = Map("radicale2", translate("Radicale 2.x"),